package com.zj;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * Hello world!
 *
 */
public class GeneratorApp extends Application
{

    public static Stage primaryStage;
    @Override
    public void start(Stage primaryStage) throws Exception{
        primaryStage=primaryStage;

        Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("Ssm.fxml"));
        primaryStage.setTitle("众匠代码生成器");
        Scene scene=new Scene(root, 1000, 675);
        scene.getStylesheets().add(getClass().getClassLoader().getResource("Ssm.css").toExternalForm());
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main( String[] args )
    {
        launch(args);
    }
}
